﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MaquinaJMG
{
    public partial class servicio : Form
    {
        public servicio()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

            ServicioWebMaquina.ServicioWeb servicio = new ServicioWebMaquina.ServicioWeb();
            txtConexion.Text = servicio.PruebaConexion();

            timer1.Interval = 60000;
            timer1.Enabled = true;
            timer1.Start();
            Form1 form = new Form1();
            form.Visible = true;

            txtToken.Text = "token";
            button1.Enabled = false;
            
        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            timer1.Stop();
        }
    }
}
